package com.chenchen.code.btrace.script;

import static com.sun.btrace.BTraceUtils.*;
import com.sun.btrace.annotations.*;

/**
 * @Description:
 * @author chenchen
 * @date 2019/5/17 9:01
 */
@BTrace
public class ExceptionT {

    @OnMethod(
            clazz = "com.chenchen.code.btrace.target.BtraceTarget2",
            method = "doCall",
            location = @Location(value = Kind.ERROR)
    )
    public static void doCall(Exception e){
        println(11111);
        println(e);
        jstack();
    }
}
